Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ft transfer call message check #12

Merged
merged 8 commits into from
Jan 24, 2023
Merged

Conversation

mrLSD
Copy link
Collaborator

@mrLSD mrLSD commented Jan 17, 2023

Description

It fixes bugs related to ft_transfer_call sender_id check for validation messages.

Currently, when checking sender_id == receiver_id, we do not validate is it Aurora contract or not.

Solution

Introduce functions:

  • set_engine_contract
  • get_engine_contracts

in ft_transfer_call change message verification condition to:

if known_engine_contracts.contains(receveir_id) { .... }

Tests

Extended tests for ft_transfer_call message verification.

Breaking changes

No.

Gas cost

Not changed.

@mrLSD mrLSD added bug Something isn't working enhancement New feature or request labels Jan 17, 2023
@mrLSD mrLSD self-assigned this Jan 17, 2023
@mrLSD mrLSD changed the base branch from master to feat/extend-engin-compatibility January 20, 2023 01:29
eth-connector/src/connector.rs Outdated Show resolved Hide resolved
eth-connector-tests/src/connector.rs Outdated Show resolved Hide resolved
eth-connector/src/lib.rs Show resolved Hide resolved
@mrLSD mrLSD requested review from aleksuss and birchmd January 21, 2023 03:09
@mrLSD mrLSD changed the base branch from feat/extend-engin-compatibility to master January 22, 2023 10:16
@mrLSD mrLSD marked this pull request as ready for review January 23, 2023 14:23
@mrLSD mrLSD merged commit d5399c7 into master Jan 24, 2023
@mrLSD mrLSD deleted the fix/ft_transfer_call-message-check branch January 24, 2023 16:56
@mrLSD mrLSD added this to the v0.3.0 milestone Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants